import java.util.Scanner;


/**
 * Main class allow to launch the game
 * 
 * @author Kao Vang
 *
 */
public class Main {

	/*
	 * Function main
	 */
	public static void main(String args[]) {
		
		System.out.println("Nod yog ib qho hauj lwm qaug cawv hauv Vang's family!");
		System.out.println("Thov Soj qab taug lw mus saib peb txoj hauj lwm no tau.\n");
		
		/*Create a game*/
		Game g = new Game();
		
		
		@SuppressWarnings("resource")
		Scanner input = new Scanner(System.in);
		String cmd = "";
		
		do {
			/* Menu */
			System.out
					.println("\n\n**************** Commands ********************");
			System.out
					.println("*  1 - Strategies settings                   *");
			System.out
					.println("*  2 - Show all strategies                   *");
			System.out
					.println("*  3 - Initial game                          *");
			System.out
					.println("*  4 - Show the result                       *");
			System.out
					.println("*  5 - Show number of result                 *");
			System.out
					.println("*  6 - Show the result from interval         *");
			System.out
					.println("*  7 - Show a lucky number specific          *");
			System.out
					.println("*  8 - Find a lucky number                   *");
			System.out
					.println("*  0 - Exit program                          *");
			System.out
					.println("**********************************************");
			System.out
					.print("Type command # ");
	

			/* Read command */
			cmd = input.nextLine();

			switch (cmd) {
			case "1":
				g.strategiesSettings();

				break;
			case "2":
				g.showAllStrategies();

				break;
			case "3":
				g.initialGame();
				break;
			case "4":
				g.showResult();

				break;
			case "5":
				g.showNumberResult();

				break;
			case "6":
				g.showNumberFromInterval();

				break;
			case "7":
				g.showSecificLuckyNum();

				break;
			case "8":
				g.findALuckyNum();

				break;
				
			default:
				
				break;
			}

		} while (cmd.compareTo("0") != 0);
		System.out.println(" ++++ Bye ! +++++");
	}
		
}
